package net.thxjj.adminServer.service.impl;

import net.thxjj.adminServer.dao.*;
import net.thxjj.adminServer.entity.LoginHadleEvent;
import net.thxjj.adminServer.entity.aep.*;
import net.thxjj.adminServer.entity.onenet.OnetEvent;
import net.thxjj.adminServer.service.IMongoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MongoService implements IMongoService {

    @Autowired
    private ProfileDao profileDao;
    @Autowired
    private LoginDataDao loginDataDao;
    @Autowired
    private HeartInfoDao heartInfoDao;
    @Autowired
    private SmokeDataDao smokeDataDao;
    @Autowired
    private DevLogDao devLogDao;
    @Autowired
    private OneNetDataDao oneNetDataDao;
    @Autowired
    private LoginHandleDao loginHandleDao;

    @Override
    public List<LoginData> getLoginData() {
        return loginDataDao.getAllLoginLog();
    }

    @Override
    public List<SmokeData> getSmokeData() {
        return smokeDataDao.getAllSmokeData();
    }

    @Override
    public List<DevLog> getEventData() {
        return devLogDao.getAllEvent();
    }

    @Override
    public List<HeartData> getHeartData() {
        return heartInfoDao.getAllHeartBeat();
    }

    @Override
    public List<ProfileLog> getProfileLog() {
        return profileDao.getAllProfileLog();
    }

    @Override
    public List<OnetEvent> getOnetEventLog() {
        return oneNetDataDao.getAllOnetData();
    }

    @Override
    public List<LoginHadleEvent> getAllLoginHadleEvent() {

        return loginHandleDao.getAllList();
    }

}
